<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<html>
<head>
<title>Check-In Counter</title>

<style>
	.errors { color: #ff0000; }
</style>

</head>

<body>
	<img src="images/checkin.jpg" alt="Seat" /> 
	
	<p>&nbsp;</p>

	<h2>Welcome to the Check-in Counter: Passenger Selection</h2>
	
    <c:if test="${error == true}">
    <div style="border: 1px solid #900; background: #f99; width:200px; margin: 30px 0px; padding: 7px;">
    ${errorMessage}
    </div>
    </c:if>
    
	<form:form name="passengerselection" method="POST" action="passengerselection.app">
		
	<table width="600">
	  <tr>
	    <td width="150">Passenger Last Name:</td>
	    <td><form:input path="lastName" /> <form:errors path="lastName" cssClass="errors" /></td>
	  </tr>
	  <tr>
	    <td>Ticket Number:</td>
	    <td><form:input path="idTicket" /> <form:errors path="idTicket" cssClass="errors" /></td>
	  </tr>
	</table>
	<p>
	  <input type="submit" value="Find Passenger" />
	</p>
	</form:form>
	
</body>
</html>